package com.efrei.schoolmanager.views.components;

import java.awt.Dimension;

import javax.swing.JTextField;

public class CustomTextField extends JTextField {
	private static final long serialVersionUID = -3349151666597044350L;

	// Dimension par defaut
	private final static Dimension TEXT_FIELD_DIMENSION = new Dimension(100, 20);

	public CustomTextField() {
		super();
		setPreferredSize(TEXT_FIELD_DIMENSION);
		setMaximumSize(TEXT_FIELD_DIMENSION);
	}

	public CustomTextField(String s) {
		super(s);
		setPreferredSize(TEXT_FIELD_DIMENSION);
		setMaximumSize(TEXT_FIELD_DIMENSION);
	}

	public CustomTextField(String s, Dimension d) {
		super(s);
		setPreferredSize(d);
		setMaximumSize(d);
	}
}
